<!doctype html> 
<html ng-app=''> 
<head> 
    <meta charset="utf-8"> 
    <title></title>
    <style type="text/css">
div{width: 100px;height: 100px;background: #ccc;border: 1px solid black;display: none;}
input.active{
	background: yellow;
}
div.active{
	display: block;
}

    </style> 
    <script type="text/javascript" src='angular.js'></script>
    <script type="text/javascript">
   

    </script>
</head>
<body ng-init='now=0;'>
<input value='a' type="button" ng-click='now=0' class={{now==0?'active':''}}>
<input value='b' type="button" ng-click='now=1' class={{now==1?'active':''}}>
<input value='c' type="button" ng-click='now=2' class={{now==2?'active':''}}>
<div class={{now==0?'active':''}}>哈哈哈</div>
<div class={{now==1?'active':''}}>呵呵呵</div>
<div class={{now==2?'active':''}}>呼呼呼</div>
</body>
</html>